<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ page contentType="text/html; charset=utf-8" language="java"
	import="java.sql.*" errorPage=""%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>  

<!DOCTYPE HTML>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="<s:url value="/css/eff.css"/>">
        <link rel="stylesheet" type="text/css" href="<s:url value="/css/structure.css"/>">
        <link rel="stylesheet" type="text/css" href="<s:url value="/css/menu.css"/>">
        <link rel="stylesheet" type="text/css" href="<s:url value="/css/table.css"/>">
        <link rel="stylesheet" type="text/css" href="<s:url value="/css/search.css"/>">
        <link rel="stylesheet" type="text/css" href="<s:url value="/css/button.css"/>">
<title>Ajouter indicateur calculé</title>
    </head>

<body>
        <%@ include file="/vues/menu.jsp" %>

	
		<div class="leftmenu">
				<ul id="menu-accordeon">
   <li><a href="<%=request.getContextPath()%>/themes/ListeThemes.action">Liste des thémes</a>
   
   </li>
		</div>
		
		
		
				<s:fielderror></s:fielderror>
    <center>

				<form name="formIndicateur" action="<%=request.getContextPath()%>/indicateurCalcules/AjouterIndicateurCalcule.action?identifiantTheme=<%=request.getParameter("identifiantTheme")%>">
				
				
				
            <table cellspacing='0' id="inputText">
                <tbody>

                        <td class="evento">Libelle :</td>
                        <td class="evento"><input type="text" name="libelle" 
                        value="<s:property value="libelle"/>"><div style="color: red;" 
                        align="left"><s:fielderror><s:param>libelle</s:param></s:fielderror></div></td>					
				
					
					<tr>
                        <td class="evento">Type :</td>
						<td class="evento">
						<select id="type" name="type" value='<c:out value="${type}"/>'">
									<option value="aucun">Choisissir le type</option>
									<c:if test="${type == 'true'}">
										<option value="true" selected>Calculable</option>
									</c:if>
									<c:if test="${type == 'false'}">
										<option value="false" selected>NonCalculable</option>
									</c:if>
									
									<c:if test="${type != 'true'}">
										<option value="true">Calculable</option>
									</c:if>
									<c:if test="${type != 'false'}">
										<option value="false">NonCalculable</option>
									</c:if>
									
								</select>
							</td>
							<br>					</tr>

                        <td class="evento" colspan="2"><input class="btnLogin" value="Ajouter" type="submit"></td>

					
					 </tbody>
            </table>
            						<s:textfield cssStyle="display:none;" name="identifiantTheme" value="%{#parameters['identifiantTheme']}"></s:textfield>
            
        </form>
    </center>
			
				<s:if test="hasActionErrors()">
						<s:actionerror />
				</s:if>
			
</body>
</html>